﻿using RestSharp;
using System;
using Ymatou.ServiceCenter;

namespace Ymatou.User.Dto.PasswordAction
{
    /// <summary>
    /// 重置密码请求 。返回 ReponseData&lt;ResetPasswordReponseCode&gt;
    /// </summary>
    [Resource("auth.ymatou.com", "/json/reply/PasswordRequestDto", Method.POST, ParameterBuildType.FormUrlEncoded)]
    public class PasswordRequestDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 登录手机
        /// </summary>
        public string LoginMobile { get; set; }
        /// <summary>
        /// 登录邮箱
        /// </summary>
        public string LoginMail { get; set; }
        /// <summary>
        /// 旧密码
        /// </summary>
        public string OldPassword { get; set; }
        /// <summary>
        /// 新密码
        /// </summary>
        public string NewPassword { get; set; }
        /// <summary>
        /// 密码类型
        /// </summary>
        public PasswordActionType PasActionType { get; set; }
        /// <summary>
        /// 修改密码依据
        /// </summary>
        public ActionType AType { get; set; }
    }
}
